/**
 * describe:
 *
 * @author helloworldyu
 * @data 2018/1/3
 */
public abstract class AbstractSubject {
	private EventHandler eventHandler = new EventHandler();

	public void addEvent(Object object, String methodName, Object... params){
		Event event = new Event(object,methodName,params);
		eventHandler.addEvent(event);
	}

	public void notifyX() throws Exception {
		eventHandler.notifyX();
	}
}